package com.kxmall.rider.domain.bo;

import com.kxmall.common.core.domain.BaseEntity;
import com.kxmall.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;


/**
 * 配送商品信息业务对象 kx_rider_item
 *
 * @author kxmall
 * @date 2023-09-21
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class KxRiderItemBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 配送单主键
     */
    private Long riderOrderId;

    /**
     * 商品名称
     */
    private String spuName;

    /**
     * 数量
     */
    private String amount;

    /**
     * 商品URL
     */
    private String url;

    /**
     * 单价
     */
    private Long unitPrice;

    /**
     * 优惠单价格
     */
    private Long preferentialPrice;


}
